import request from '../../service/index.js'

export const getAllCircleChat = data => {
	return request({
		path: '/circle/chat/circle',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const uploadImage = data => {
	return request({
		path: '/api/common/upload',
		method: 'POST',
		data,
		module: 'car'
	})
}
export const addCircleChat = data => {
	return request({
		path: '/circle/chat/add_circle',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const cancelCircleChat = data => {
	return request({
		path: '/circle/chat/del_circle',
		method: 'GET',
		data,
		module: 'lifeCircle'
	})
}
export const getCircleChat = data => {
	return request({
		path: '/circle/chat/circle_desc',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getAllComment = data => {
	return request({
		path: '/circle/chat/comment',
		method: 'GET',
		data,
		module: 'lifeCircle'
	})
}
export const getAllLikeNumber = data => {
	return request({
		path: '/circle/chat/fabulous',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const addComment = data => {
	return request({
		path: '/circle/chat/add_comment',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const addLike = data => {
	return request({
		path: '/circle/chat/add_fabulous',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const deleteLike = data => {
	return request({
		path: '/circle/chat/del_fabulous',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const addGroup = data => {
	return request({
		path: '/circle/chat/add_organization',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getCommentDetail = data => {
	return request({
		path: '/circle/chat/comment_desc',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getPersonalInfo = data => {
	return request({
		path: '/circle/chat/homepage',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getGroupType = data => {
	return request({
		path: '/circle/chat/class',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getAllGroup = data => {
	return request({
		path: '/circle/chat/organization',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getGroup = data => {
	return request({
		path: '/circle/chat/organization_desc',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const getSigGroup = data => {
	return request({
		path: '/recruit/recruit/chat_login',
		method: 'POST',
		data,
		module: 'recruit'
	})
}
export const joinGroup = data => {
	return request({
		path: '/circle/chat/in_organization',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const outGroup = data => {
	return request({
		path: '/circle/chat/out_organization',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}
export const deleteGroup = data =>{
	return request({
		path: '/circle/chat/del_organization',
		method: 'POST',
		data,
		module: 'lifeCircle'
	})
}